package org.example.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动报名记录表
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("event_registrations")
public class EventRegistrations implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 活动ID
     */
    private Long eventId;

    /**
     * 报名用户ID (可以是家长或学生)
     */
    private Long userId;

    /**
     * 报名时间
     */
    private LocalDateTime registeredAt;
    
    /**
     * 用户类型 (1:教师, 2:学生, 3:家长)
     */
    private String userType;
    
    /**
     * 用户真实姓名
     */
    private String fullName;
}